<div class="row">
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>

  <div class="span9"> 
<div class="text-right"><a role="button" class="btn btn-primary " data-toggle="modal" href="/<*$controller*>/clear" ><i class="icon-pencil icon-white"> </i> 清理超时数据</a></div>

        <table class="table table-hover table-bordered " style="margin-top:15px;">
            <tr>
                <th rowspan="2">序号</th>
                <th rowspan="2">ID</th>
                <th rowspan="2">校区</th>
                <th rowspan="2">总数</th>
                <th colspan="2">未上传数</th>
                <th colspan="2">当日新增</th>
                <th rowspan="2">已删除</th>
            </tr>
			<tr>
            <th>缩略图</th>
            <th>源图</th>            
            <th>日期</th>            
            <th>数量</th>            
            </tr>            
            <*eval var=-1 assign="groupid_or"*>
        	<*foreach from=$result item=item key=key name=foo*>
            <*eval var=$item.groupid assign="groupid"*>
            <*if $groupid_or<>$groupid*>
             <tr class="success">
             <td colspan="9"><*eval var=$item.groupid assign="groupid"*><*if $groupid*><*$groupnamelist.$groupid*><*else*>默认<*/if*></td>
			</tr>
             <*eval var=$groupid assign="groupid_or"*>
            <*/if*>
            <tr <*if $item.isold==1*>class="warning"<*elseif $item.isouttime==1*>class="error"<*/if*> >
                <td><*$smarty.foreach.foo.iteration*></td>
                <td><*$item.groupid*>-<*$item.schoolid*></td>
                <td><*eval var=$item.schoolid assign="schoolid"*><*if $schoolid*><*$schoolnamelist.$schoolid*><*else*>默认<*/if*></td>
                <td><*$item.all_num*></td>
                <td><*$item.noup_thumb_num*></td>
                <td><*$item.noup_source_num*></td>
                <td><*$item.today*></td>
                <td><*$item.today_num*></td>
                <td><*$item.isdelete_num*></td>
            </tr>
            <*/foreach*>
            
            <tr class="success">
             <td colspan="9">合计</td>
			</tr>
            <tr>
                <th rowspan="2">序号</th>
                <th rowspan="2">ID</th>
                <th rowspan="2">校区</th>
                <th rowspan="2">总数</th>
                <th colspan="2">未上传数</th>
                <th colspan="2">当日新增</th>
                <th rowspan="2">已删除</th>
            </tr>
			<tr>
            <th>缩略图</th>
            <th>源图</th>            
            <th>日期</th>            
            <th>数量</th>            
            </tr>            
              <tr>
                <td><*$sum.count_num*></td>
                <td>&nbsp;</td>
                <td>当日有更新的校区数：<*$sum.count_today_num*></td>
                <td><*$sum.all_num*></td>
                <td><*$sum.noup_thumb_num*></td>
                <td><*$sum.noup_source_num*></td>
                <td><*$sum.today*></td>
                <td><*$sum.today_num*></td>
                <td><*$sum.isdelete_num*></td>
            </tr>
        </table>
        <div >
        <table class="table">
        <tr>
        <th  colspan="2">背景颜色说明：</th>
        </tr>
        <tr>
        	<td style="background-color:#f2dede;">客户端掉线（要引起注意）</td>
        	<td style="background-color:#fcf8e3;">因客户端重新拨号导致互联网ip地址变化（此可以忽略）</td>
        </tr>
        </table>
        </div>
  </div>
</div>